STEP 2: Examine each helper function and its brief explanation, then click Run, Submit, and Next.
- cast_spell(): Allows player to choose a spell to cast and randomly chooses one for the computer.
- fireball(): Animates a Fireball spell based on which sprite cast the spell.
- rock_smash(): Animates a Rock Smash spell based on which sprite cast the spell.
- calculate_damage(): Calculates and animates random damage based on which spell was cast.
To navigate the page using the TAB key, first press ESC to exit the code editor.